import { createRouter, createWebHashHistory } from 'vue-router'
import Detail from './components/Detail.vue'
import Home from './components/Home.vue'
const router = createRouter({
    history: createWebHashHistory(),
    routes: [
        { path: '/detail/:id', component: Detail },
        { path: '/', component: Home },
    ]
})
export default router